package com.suse.lhw.domin;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.domin
 * @ClassName: FFoodmodelInstance
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/29 12:31
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/29 12:31
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class FFoodmodelInstance {
    private Integer id;

    /**
     * 食物模型id
     */
    private Integer fmId;

    /**
     * 数量
     */
    private Integer quanity;

    /**
     * 三餐类型，比如早餐，晚餐
     */
    private Integer type;

    private String userId;

    private Integer unitid;

    private Date createtime;

    /**
     * 消耗的卡路里
     */
    private Integer calories;

    private String spare1;

    private String spare2;

    public FFoodmodelInstance(int foodId, int unitId, int quanity, int eattime, String userId, Date creatDate, int calories) {
        this.fmId = foodId;
        this.userId = userId;
        this.unitid = unitId;
        this.type = eattime;
        this.quanity = quanity;
        this.createtime = creatDate;
        this.calories = calories;
    }
}